Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Feb 12, 2025


PR-Codex overview

This PR focuses on improving the user interface for wallet balance display and enhancing the documentation for the canClaim function across multiple token standards.

Detailed summary

  • Updated BuyTokenInput.tsx to adjust the styling of the Container component.
  • Modified FiatValue return logic to avoid displaying a placeholder when no data is available.
  • Added detailed JSDoc comments for the canClaim function in erc20, erc721, and erc1155 extensions.
  • Enhanced TokenBalanceRow in WalletSelectorButton.tsx to format token balances and adjust layout.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 10:21pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 10:21pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 10:21pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 10:21pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 10:21pm

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Feb 12, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joaquim-verges joaquim-verges changed the title [SDK] fix: Hide dollar values for wallet balances [SDK] fix: show token + dollar values for wallet balances Feb 12, 2025
@joaquim-verges joaquim-verges marked this pull request as ready for review February 12, 2025 21:43
@joaquim-verges joaquim-verges requested review from a team as code owners February 12, 2025 21:43
@joaquim-verges joaquim-verges force-pushed the _SDK_fix_Hide_dollar_values_for_wallet_balances branch from f9e54a0 to e60ec1f Compare February 12, 2025 21:43
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.3 KB (0%) 926 ms (0%) 477 ms (+36.06% 🔺) 1.5 s
thirdweb (cjs) 121.89 KB (0%) 2.5 s (0%) 694 ms (+3.78% 🔺) 3.2 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 120 ms (+324.08% 🔺) 232 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 48 ms (+373.71% 🔺) 58 ms
thirdweb/react (minimal + tree-shaking) 19.29 KB (0%) 386 ms (0%) 73 ms (-1.07% 🔽) 459 ms

@codecov
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 3.44828% with 28 lines in your changes missing coverage. Please review.

Project coverage is 56.87%. Comparing base (e9ab8cb) to head (e60ec1f).

Files with missing lines Patch % Lines
...ConnectWallet/screens/Buy/WalletSelectorButton.tsx 5.00% 19 Missing ⚠️
...i/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx 0.00% 6 Missing ⚠️
...eb/ui/ConnectWallet/screens/Buy/swap/FiatValue.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6240      +/-   ##
==========================================
- Coverage   56.88%   56.87%   -0.02%     
==========================================
  Files        1166     1166              
  Lines       64507    64522      +15     
  Branches     5226     5226              
==========================================
+ Hits        36698    36699       +1     
- Misses      27081    27095      +14     
  Partials      728      728              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e9ab8cb
packages 55.09% <3.44%> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...eb/ui/ConnectWallet/screens/Buy/swap/FiatValue.tsx 25.71% <0.00%> (+2.03%) ⬆️
...i/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx 10.24% <0.00%> (-0.32%) ⬇️
...ConnectWallet/screens/Buy/WalletSelectorButton.tsx 11.42% <5.00%> (-0.30%) ⬇️

@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2025

🦋 Changeset detected

Latest commit: ff01471

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch
thirdweb-login Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@joaquim-verges joaquim-verges merged commit ee1bc3e into main Feb 12, 2025
27 of 31 checks passed
@joaquim-verges joaquim-verges deleted the _SDK_fix_Hide_dollar_values_for_wallet_balances branch February 12, 2025 22:20
@joaquim-verges joaquim-verges mentioned this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants